package com.koron.operation.classes.shift.bean.query;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import java.util.Date;
import java.util.List;

/**
 * 交接班记录分页查询条件
 * @author jzp
 * @since 2021/10/27
 */
@Data
public class ShiftRecordQuery {

    @ApiModelProperty("交接班记录id集合")
    private List<String> ids;

    @ApiModelProperty("值班人员类型列表，数据字典：operation_staff_type")
    @NotEmpty(message = "值班人员类型不能为空")
    private List<String> staffTypes;

    @ApiModelProperty("值班单位id")
    @NotBlank(message = "值班单位不能为空")
    private String deptId;

    @ApiModelProperty("值班单位ids")
    private List<String> deptIds;

    @ApiModelProperty("值班单位名称")
    private String deptName;

    @ApiModelProperty("值班地点id")
    @NotBlank(message = "值班地点不能为空")
    private String locationId;

    @ApiModelProperty("值班地点名称")
    private String locationName;

    @ApiModelProperty("值班开始时间范围，[起始时间, 结束时间]")
    private List<Date> startDates;

    private Integer status = 1;

}
